<template>
  <div>
    <div class="header-nav">
      <div @click="toHome">
        <i class="icon_search iconfont"> &#xe650; </i>
      </div>
      <div class="tit">城市选择</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    toHome() {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="less" scoped>
.header-nav {
  height: 0.9rem;
  position: relative;
  width: 100%;
  background-color: #00bcd4;
  display: flex;
  align-items: center;
  .icon_search {
    display: block;
    height: 0.7rem;
    width: 0.6rem;
    line-height: 0.7rem;
    text-align: center;
    font-size: 0.4rem;
    padding-right: 0.1rem;
  }
  .tit {
    height: 100%;
    width: 100%;
    text-align: center;
    line-height: 0.9rem;
    font-size: 0.4rem;
  }
  color: white;
}
</style>
